<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
    <link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css" />
    <script>
    	var APP = '__CONTROLLER__';
    </script>
    <js file="__STATIC__/js/jq.js" />
    <js file="__STATIC__/hdjs/hdjs.js" />
    <js file="__CONTROLLER_VIEW__/js/article.js" />
    <style>
    	
    </style>
</head>
<body>
<div class="wrap">
	<div class="hd-title-header">
				<h3>文章列表</h3>
			</div>
    <table class="hd-table hd-table-list">
        <thead>
        <tr>
            <td width="50">id</td>
            <td>文章标题</td>
            <td width="100">属性</td>
            <td width="180">添加时间</td>
            <td width="180">修改时间</td>
            <td width="100">所属分类</td>
            <td width="50">作者</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
        	<foreach from='$arts' key='$key' value='$val'>
            <tr>
            <td width="50">{$val.aid}</td>
            <td>{$val.title}</td>
            <td width="100">{$val.attr|hd_substr:15,'...'}</td>
            <td width="180">{$val.sendtime|date:"Y-m-d H:i:s",@@}</td>
            <td width="180">{$val.updatetime}</td>
            <td width="100">{$val.cname}</td>
            <td width="50">{$val.author}</td>
            <td width="150">
            	<a href="__CONTROLLER__/edit/aid/{$val.aid}" class="hd-btn hd-btn-primary hd-btn-xm" style="margin:0">修改</a>
            	<a href="javascript:;" data-isre="1" data-aid="{$val.aid}" class="hd-btn hd-btn-danger hd-btn-xm isrec" style="margin:0">回收</a>
            </td>
        </tr>
        </foreach>
        </tbody>
    </table>
    <div class="hd-page">
      {$page}
    </div>
	
</div>

</body>
</html>


